//
//  PHPhotoLibrary category to handle a custom photo album
//
//  Created by Marin Todorov on 10/26/11.
//  Copyright (c) 2011 Marin Todorov. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AssetsLibrary/AssetsLibrary.h>
#import <Photos/Photos.h>

typedef void(^SavePHotoImageCompletionExternal)(NSString *identifiers, NSError* error);

@interface PHPhotoLibrary(CustomPhotoAlbum)

- (void)saveImage:(UIImage*)image toAlbum:(NSString*)albumName withMetaData:(NSDictionary *)metaData withCompletionBlock:(SavePHotoImageCompletionExternal)completionBlock;
- (void)saveImage:(UIImage*)image
     orientation:(UIImageOrientation)srcOrientation
         toAlbum:(NSString*)albumName
    withMetaData:(NSDictionary *)metaData
      completion:(SavePHotoImageCompletionExternal)completionBlock;

@end